package com.ebupt.migu.music.system.controller;

import com.ebupt.migu.music.common.entity.ResultObject;
import com.ebupt.migu.music.common.util.ReqestParamUtil;
import com.ebupt.migu.music.system.service.DictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 字典表配置查询
 *
 * @author tz
 */
@RestController
@RequestMapping("/dict")
public class DictController {

    @Autowired
    private HttpServletRequest request;
    @Autowired
    private DictService deptService;

    /**
     * 查询字典表参数
     */
    @RequestMapping("/qryAutoTriParam")
    public ResultObject qryAutoTriParam() {
        Map<String, Object> params = ReqestParamUtil.getParams(request);
        return deptService.qryAutoTriParam(params);
    }

}